
from QCommand import QCommand, CmdIDGen
# event
from EventDefine import event_QCMD_MEMBERMOVE

class QCmdMemberMove(QCommand):
    CMDID = CmdIDGen()
    CMDNAME = "QCmdMemberMove"

    def Send(self, move2TeamID):
        QCommand.InputSend(self, memberID = QCommand.MyMemberID,param = move2TeamID)

    def Handle(self, memberID, param):
        move2TeamID = param
        messenger.send(event_QCMD_MEMBERMOVE, [memberID, move2TeamID])